package demo2429;

import java.util.Scanner;
public class Testcarbx {
    public static void main(String[] args) {
        System.out.println("车的价格");
        Scanner scanner=new Scanner(System.in);
        double price= scanner.nextDouble();
        System.out.println("该车发生的事故次数");
        int number =scanner.nextInt();

        Bx bx=new Car(number,price);
        double money= bx.add();
        System.out.println("你的保费是："+money);



    }

}
